const watchModelData = {
  props: ['viewFormData', 'fatherNode'],
  watch: {
    'viewFormData.modelData': {
      handler(val, oldVal) {
        const {
          prop
        } = this.option.item
        if (this.fatherNode) {
          // debugger
          const { fatherIndex } = this.option
          const val1 = val[this.fatherNode.prop][fatherIndex][prop]
          if (val1) {
            this.value = val1
          }
        } else {
          const val1 = val[prop]
          if (val1) {
            this.value = val1
          }
        }
        
      },
      deep: true
    }
  }
}

export default watchModelData